#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QTcpSocket>
#include <QHostAddress>
#include "workwindow.h"
namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = 0);
    ~MainWidget();

public slots:
    void on_socketLog_connected();
private slots:
    void on_pushButtonLogReg_clicked();

    void on_pushButtonRegLog_clicked();

    void on_pushButtonIp_clicked();

    void on_pushButtonLogLog_clicked();



    void on_pushButtonRegReg_clicked();

private:
    Ui::MainWidget *ui;
    QTcpSocket *socketLog;
    QTcpSocket *socketReg;
    QString IP;
    QString buff;
    QString username;
    Workwindow *workwindow;
};

#endif // MAINWIDGET_H
